# 如果有错误继续执行下一条命令而不停止
onerror { resume }
quietly WaveActivateNextPane {} 0

add wave -noupdate -divider INPUT
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/I_rst_n
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/W_reset_n
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/R_Reset_Cnt
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/clock
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/I_lwr_n
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/I_lrd_n
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/R_I_lrd_n_2
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/I_lcs_n
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/I_la
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/IO_ld_in
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/IO_ld_out
add wave -noupdate -divider REGISTER
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/R_I_lwr_n
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/R_I_lwr_n_1
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/R_SPD2_FCONFIG_LOW
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/R_SPD2_PCONFIG_HIGH
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/module_freq1/R_dir
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/W_reg_data_out
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/module_freq1/R_pulse_cnt
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/module_freq1/R_I_init_pulse
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/R_SPD2_INIT_PULSE_LOW
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/R_SPD2_INIT_PULSE_HIGH
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/R_SPD2_REPORT_PULSE_LOW
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/R_SPD2_REPORT_PULSE_HIGH
add wave -noupdate -divider OUTPUT
# add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/module_freq1/cnt
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/O_spd1_ch
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/O_btm_cd1
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/O_ti_lock
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/O_ti_led
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/O_ld_dir
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/O_ld_oe_n
add wave -noupdate -format Logic /sim_db_fpga_tb/top_inst/O_mvb_lcs_n

TreeUpdate [SetDefaultTree]
# 设置光标位置
# WaveRestoreCursors {{Cursor 1} {2000 ns} 0},{{Cursor 2} {5000 ns} 0}
WaveRestoreCursors {0 ns}

# 设置波形的属性
configure wave -namecolwidth 150
configure wave -valuecolwidth 100
configure wave -justifyvalue left
configure wave -signalnamewidth 0
configure wave -snapdistance 10
configure wave -datasetprefix 0
configure wave -rowmargin 4
configure wave -childrowmargin 2
configure wave -gridoffset 0
configure wave -gridperiod 1
configure wave -griddelta 40
configure wave -timeline 0
#更新配置
#update WaveRestoreZoom {0 ns} {100 us}
update